package com.lu.springbootinit.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.lu.springbootinit.model.entity.QuestionBankQuestion;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Lu
* @description 针对表【question_bank_question(题库题目)】的数据库操作Mapper
* @createDate 2025-02-09 15:14:00
* @Entity com.lu.springbootinit.model.entity.QuestionBankQuestion
*/
public interface QuestionBankQuestionMapper extends BaseMapper<QuestionBankQuestion> {

    List<Long> getQuestionIdsByQuestionBankId(Long questionBankId);

    @Select("SELECT questionId FROM question_bank_question WHERE questionBankId = #{questionBankId}")
    List<Long> selectQuestionIdsByQuestionBankId(Long questionBankId);
}




